package com.zf.yichat.mapper;

import com.zf.yichat.base.FsMapper;
import com.zf.yichat.model.MessageChatroom;
import org.apache.ibatis.annotations.Param;

public interface MessageChatroomMapper extends FsMapper<MessageChatroom> {

    /**
     * 根据chatroomId删除聊天室
     * @param chatroomId
     * @return
     */
    int deleteChatroomByChatroomId(@Param("chatroomId") String chatroomId);

    int chatroomUpdateChatroom(@Param("chatroomId") Long chatroomId, @Param("chatroomName") String chatroomName);

    void chatroomUpdateStatus(@Param("chatroomId") Long chatroomId, @Param("status") String status);
}